#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1199U,42,1020U,1032U},
/*2*/{1184U,37,1020U,1031U},
/*4*/{1169U,33,1021U,1030U},
/*6*/{1155U,30,1021U,1030U},
/*8*/{1140U,25,1021U,1029U},
/*10*/{1126U,22,1021U,1028U},
/*12*/{1111U,18,1022U,1028U},
/*14*/{1096U,15,1022U,1027U},
/*16*/{1082U,10,1022U,1026U},
/*18*/{1067U,7,1023U,1026U},
/*20*/{1053U,3,1023U,1025U},
/*22*/{1038U,3,1023U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1009U,-4,1024U,1023U},
/*28*/{994U,-5,1024U,1022U},
/*30*/{980U,-9,1024U,1021U},
/*32*/{965U,-12,1025U,1021U},
/*34*/{951U,-16,1025U,1020U},
/*36*/{936U,-20,1025U,1019U},
/*38*/{921U,-23,1026U,1018U},
/*40*/{906U,-27,1026U,1018U},
/*42*/{891U,-31,1026U,1017U},
/*44*/{876U,-34,1027U,1016U},
/*46*/{861U,-38,1027U,1016U},
/*48*/{841U,-42,1027U,1015U},
/*50*/{821U,-45,1028U,1014U},
/*52*/{801U,-49,1028U,1013U},
/*54*/{789U,-52,1028U,1012U},
/*56*/{777U,-56,1029U,1011U},
/*58*/{765U,-59,1029U,1011U},
/*60*/{753U,-62,1029U,1010U},
/*62*/{741U,-66,1029U,1010U},
/*64*/{725U,-69,1030U,1009U},
/*66*/{710U,-72,1030U,1008U},
/*68*/{694U,-79,1030U,1008U},
/*70*/{678U,-82,1030U,1007U},
/*72*/{666U,-85,1030U,1006U},
/*74*/{654U,-88,1031U,1006U},
/*76*/{642U,-91,1031U,1005U},
/*78*/{630U,-94,1031U,1005U},
/*80*/{618U,-97,1031U,1005U},
/*82*/{603U,-100,1031U,1004U},
/*84*/{587U,-103,1032U,1004U},
/*86*/{572U,-106,1032U,1003U},
/*88*/{556U,-109,1032U,1002U},
/*90*/{544U,-112,1032U,1002U},
/*92*/{531U,-115,1032U,1001U},
/*94*/{519U,-118,1033U,1001U},
/*96*/{506U,-121,1033U,1001U},
/*98*/{496U,-124,1033U,1000U},
/*100*/{485U,-127,1033U,1000U},
/*102*/{474U,-130,1033U,1000U},
/*104*/{463U,-133,1033U,999U},
/*106*/{452U,-136,1033U,999U},
/*108*/{442U,-139,1034U,999U},
/*110*/{431U,-142,1034U,998U},
/*112*/{420U,-145,1034U,998U},
/*114*/{409U,-148,1034U,998U},
/*116*/{398U,-151,1034U,997U},
/*118*/{387U,-154,1034U,997U},
/*120*/{377U,-157,1034U,997U},






};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{

/*0*/{1064U,33,993U,1028U},
/*2*/{1061U,30,996U,1028U},
/*4*/{1058U,27,998U,1028U},
/*6*/{1054U,24,1001U,1027U},
/*8*/{1051U,21,1003U,1027U},
/*10*/{1047U,18,1006U,1026U},
/*12*/{1044U,15,1008U,1026U},
/*14*/{1041U,12,1011U,1026U},
/*16*/{1037U,9,1013U,1025U},
/*18*/{1034U,6,1016U,1025U},
/*20*/{1030U,3,1018U,1024U},
/*22*/{1027U,3,1021U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1020U,-3,1026U,1023U},
/*28*/{1017U,-6,1029U,1023U},
/*30*/{1013U,-9,1031U,1022U},
/*32*/{1010U,-12,1034U,1022U},
/*34*/{1006U,-15,1036U,1021U},
/*36*/{1003U,-18,1039U,1021U},
/*38*/{1000U,-21,1041U,1021U},
/*40*/{996U,-24,1044U,1020U},
/*42*/{993U,-27,1046U,1020U},
/*44*/{989U,-30,1049U,1019U},
/*46*/{986U,-33,1051U,1019U},
/*48*/{983U,-36,1054U,1019U},
/*50*/{979U,-39,1056U,1018U},
/*52*/{976U,-42,1059U,1018U},
/*54*/{972U,-45,1061U,1017U},
/*56*/{969U,-48,1063U,1017U},
/*58*/{965U,-51,1068U,1016U},
/*60*/{961U,-54,1072U,1016U},
/*62*/{957U,-57,1077U,1015U},
/*64*/{953U,-60,1082U,1014U},
/*66*/{950U,-63,1085U,1014U},
/*68*/{946U,-69,1089U,1013U},
/*70*/{943U,-72,1093U,1013U},
/*72*/{940U,-75,1097U,1012U},
/*74*/{936U,-78,1101U,1012U},
/*76*/{933U,-81,1104U,1011U},
/*78*/{929U,-84,1108U,1011U},
/*80*/{926U,-87,1112U,1010U},
/*82*/{923U,-90,1116U,1009U},
/*84*/{917U,-93,1123U,1008U},
/*86*/{911U,-96,1129U,1008U},
/*88*/{906U,-99,1137U,1007U},
/*90*/{902U,-102,1141U,1006U},
/*92*/{898U,-105,1145U,1005U},
/*94*/{894U,-108,1150U,1005U},
/*96*/{890U,-111,1155U,1004U},
/*98*/{884U,-114,1162U,1003U},
/*100*/{879U,-117,1169U,1001U},
/*102*/{873U,-120,1175U,1000U},
/*104*/{867U,-123,1182U,999U},
/*106*/{861U,-126,1189U,998U},
/*108*/{855U,-129,1196U,997U},
/*110*/{849U,-132,1203U,996U},
/*112*/{844U,-135,1210U,995U},
/*114*/{838U,-138,1217U,994U},
/*116*/{832U,-141,1224U,993U},
/*118*/{826U,-144,1231U,992U},
/*120*/{820U,-147,1238U,991U},



};

static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1025U,23,1032U,975U},
/*2*/{1025U,21,1032U,979U},
/*4*/{1025U,19,1031U,983U},
/*6*/{1025U,17,1030U,987U},
/*8*/{1025U,15,1029U,991U},
/*10*/{1025U,14,1029U,995U},
/*12*/{1025U,10,1028U,999U},
/*14*/{1025U,8,1027U,1003U},
/*16*/{1025U,5,1026U,1007U},
/*18*/{1025U,3,1026U,1011U},
/*20*/{1025U,1,1025U,1015U},
/*22*/{1024U,1,1024U,1019U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1024U,-2,1023U,1028U},
/*28*/{1024U,-4,1022U,1032U},
/*30*/{1024U,-7,1021U,1036U},
/*32*/{1024U,-9,1021U,1040U},
/*34*/{1024U,-11,1020U,1044U},
/*36*/{1024U,-13,1019U,1048U},
/*38*/{1024U,-15,1018U,1052U},
/*40*/{1024U,-17,1018U,1056U},
/*42*/{1022U,-19,1017U,1060U},
/*44*/{1022U,-21,1016U,1064U},
/*46*/{1022U,-22,1015U,1068U},
/*48*/{1022U,-24,1014U,1074U},
/*50*/{1022U,-27,1012U,1080U},
/*52*/{1022U,-29,1012U,1086U},
/*54*/{1022U,-32,1011U,1092U},
/*56*/{1022U,-34,1010U,1099U},
/*58*/{1022U,-36,1009U,1105U},
/*60*/{1022U,-38,1008U,1115U},
/*62*/{1022U,-40,1007U,1121U},
/*64*/{1021U,-42,1006U,1127U},
/*66*/{1021U,-44,1005U,1133U},
/*68*/{1021U,-48,1004U,1141U},
/*70*/{1021U,-50,1003U,1147U},
/*72*/{1021U,-52,1003U,1153U},
/*74*/{1021U,-54,1002U,1159U},
/*76*/{1021U,-55,1000U,1167U},
/*78*/{1021U,-58,1000U,1178U},
/*80*/{1021U,-60,998U,1184U},
/*82*/{1019U,-62,997U,1192U},
/*84*/{1019U,-64,996U,1198U},
/*86*/{1018U,-66,995U,1204U},
/*88*/{1018U,-68,994U,1210U},
/*90*/{1017U,-69,994U,1216U},
/*92*/{1015U,-72,992U,1226U},
/*94*/{1015U,-73,991U,1234U},
/*96*/{1014U,-75,990U,1242U},
/*98*/{1012U,-78,989U,1251U},
/*100*/{1011U,-80,988U,1259U},
/*102*/{1010U,-81,988U,1267U},
/*104*/{1008U,-83,987U,1275U},
/*106*/{1007U,-85,986U,1283U},
/*108*/{1006U,-88,986U,1291U},
/*110*/{1004U,-90,985U,1299U},
/*112*/{1003U,-91,984U,1307U},
/*114*/{1001U,-93,983U,1315U},
/*116*/{1000U,-95,983U,1324U},
/*118*/{999U,-97,982U,1332U},
/*120*/{997U,-99,981U,1340U},




};


TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}


/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



